package com.cz.datafetcher.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.datafetcher.entity.search.BaseSearchModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("fetchTypes")
@ApiModel(value = "采集数据的类型，电，气等，同时用于搜索条件")
public class FetchTypes extends BaseSearchModel implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    @ApiModelProperty(value = "名称，like搜索")
    private String name;
}
